<? $m = count($googlemap) > 0 ? json_encode($googlemap) : 0; ?>
<? $index = 0; ?>

<script>
    var m = '<?= $m ?>';
</script>

<div id="google_box">

    <div class="clearfix" style="height:100%">

        <div id="google-list">

            <? foreach ($googlemap as $v) : ?>

                    <? $t = HOST_URL_HOTELS . 'gallery/' . $v->photo_path . '/thumb_130x130/' . $v->photo_name; ?>

                    <div class="GH" data-id="<?= $index ?>">

                        <img src="<?= $t ?>" width="70" />

                        <div class="title"><?= $v->name ?></div>
                        <div class="subtitle"><?= $v->destination ?></div>
                        
                         <div class="stars small star_<?= (int)$v->stars ?>"></div>
                        
                        <div class="list"></div>

                        <div class="<?= $v->price == 0 ? "no-" : "" ?>price"><?= $v->price == 0 ? "Price is unknown" : $v->price . currency_sign(); ?></div>

                    </div>

                    <?
                    $index++;
                endforeach;
            ?>

        </div>
        
        <div id="google_map"></div>
        
    </div>

</div>